package com.qianke.common.sms;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class SmsMovekHelper {

    public static final Logger logger = LoggerFactory.getLogger(SmsMovekHelper.class);

    public static String sendUrl = "https://client.movek.net:8443/sms.aspx";
    public static String account = "SDK-A1420-1420";
    public static String password = "142020";
    public static String userid = "1420";
    public static String paramsInfo = "action=send&userid=1420&account=SDK-A1420-1420&password=142020&json=1";

//    public static void sendMsg(String mobile, String message) {
//        Assert.assertNotNull(mobile,"手机号不能为空!");
//        Assert.assertNotNull(message,"短信内容不能为空!");
//
//        logger.info("send msg post param , phone : {} , message : {}", mobile, message);
//
//        String params = paramsInfo + "&mobile=" + mobile + "&content=" + message;
//        String result = HttpsClient.httpsRequest(sendUrl, "POST", params);
//
//        logger.info("send result : {}", result);
//    }

}